﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Create.Master" Inherits="System.Web.Mvc.ViewPage<Longtop.Web.WebSite.Admin.Cases.CreateModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form" runat="server">
    <tr>
        <td>
            <%= Html.LabelFor(m=>m.Model.Title) %>
        </td>
        <td>
            <%= Html.TextBoxFor(m=>m.Model.Title) %>
            <%= Html.ValidationMessageFor(m=>m.Model.Title) %>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(m=>m.Model.Lable) %>
        </td>
        <td>
            <%Html.RenderAction("selector", "labels", new { name = "LableId", ClassId = Model.Lable.LableId }); %>
            <%= Html.ValidationMessageFor(m=>m.Model.Lable)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(m=>m.Model.Logo) %>
        </td>
        <td>
            <asp:FileUpload ID="FileUpload1" runat="server" /><br />
            前台最佳效果尺寸：120*120
        </td>
    </tr>
    <%--   <tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td class="tdrightpad0">
                排序
            </td>
            <td>
                <asp:TextBox ID="txb_CateOrder" runat="server" Width="51px"></asp:TextBox>&nbsp;
                <asp:RegularExpressionValidator ID="Re_CateOrder" runat="server" ControlToValidate="txb_CateOrder"
                    ErrorMessage="必须为整数型" ValidationExpression="^\s*[0-9]+\s*$"></asp:RegularExpressionValidator>
            </td>
        </tr>
       <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <td class="tdrightpad0" style="height: 24px">
                发布时间
            </td>
            <td style="height: 24px">
                <asp:TextBox ID="txb_AddTime" runat="server"></asp:TextBox>&nbsp;
                <img style="cursor: hand" onclick="setday(document.getElementById('txb_AddTime'))"
                    src="../../images/calendar.gif" align="absMiddle" />
                
            </td>
        </tr>--%>
    <tr>
        <td>
            <%= Html.LabelFor(m=>m.Model.Content) %>
        </td>
        <td>
            <%= Html.EditorFor(m=>m,"editor")%>
            <%= Html.ValidationMessageFor(m=>m.Model.Content)%>
        </td>
    </tr>
    </form>

    <script type="text/javascript">
        $(function() {
            $('<%=FileUpload1.ClientID %>').change(function() {
                $('#<%=FileUpload1.ClientID %>').attr('src', $(this).val()).width(124).fadeOut('fast');
            }
         );
        });
    </script>

</asp:Content>
